--- src/jpeg2000.imageio/jpeg2000output-v1.cpp.orig	2017-08-31 14:36:04.000000000 +1000
+++ src/jpeg2000.imageio/jpeg2000output-v1.cpp	2017-10-30 10:34:45.122572637 +1000
@@ -27,6 +27,7 @@
 
   (This is the Modified BSD License)
 */
+#include <cstdio>
 #include <vector>
 #include "openjpeg.h"
 #include "OpenImageIO/filesystem.h"
